package apirouter

import (
	"slgw_web/api"
	"slgw_web/serial/util"

	"openzbox.com/frame/echo"
)

func InitWebsocketRouter(group *echo.Group) {
	router := group.Group("/Websocket")

	router.GET("/Serial/ws", util.HandleWebSocket)
	router.GET("/Index/ws", util.HandleWebSocket2) //网关时间
	router.POST("/WsWriteMessage", api.WsWriteMessage)
}
